package _acm

/*
https://blog.csdn.net/KingGue/article/details/123335283
 * ACM - Scanner
 * 读取无限整数
 * 输入 2
 *
 * 输入 1 2
 * 输出 3
 *
 * 输入 4 5
 * 输出 9
 */
fun main() {
    val n: Int = readLine()?.toInt() ?: 0
    var count = 1
    while (count <= n) {
        val list: List<Int>? = readlnOrNull()?.split(" ")?.map { it -> it.toInt() }
        list?.let {
            val a: Int = list[0]
            val b: Int = list[1]
            println(a + b)
        }
        count++
    }
}